package com.chapter_9;

/**
 * @Author: Timo
 * @Date: 2019/5/17 10:34
 * @Description: 类用途：
 */
public class Main {
    public static void main(String[] args){
        System.out.println("MAIN BEGIn");
        Host host = new Host();
        Data data_1 = host.request(10, 'A');
        Data data_2 = host.request(20, 'B');
        Data data_3 = host.request(30, 'C');
//        Data data_4 = host.request(40, 'D');

        System.out.println("main otherJob BEGIN");

        try {
            Thread.sleep(2_000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("main otherJob END");

        System.out.println("data_1 = "+data_1.getContent());
        System.out.println("data_2 = "+data_2.getContent());
        System.out.println("data_3 = "+data_3.getContent());
//        System.out.println("data_4 = "+data_4.getContent());

        System.out.println("MAIN  END");
    }
}
